// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  app: {
    head: {
      title: "nuxt3",
      meta: [
        // <meta name="viewport" content="width=device-width, initial-scale=1">
        { name: "viewport", content: "width=device-width, initial-scale=1" },
        { name: "description", content: "这是一个测试nuxt3的网站" },
        {
          charset: "utf-8",
        },
        { name: "keyword", content: "nuxt3,vue3,vite,SSR,typescript" },
      ],
      noscript: [
        // <noscript>JavaScript is required</noscript>
        { children: "必须支持js" },
      ],
    },
    pageTransition: { name: "page", mode: "out-in" },
    layoutTransition: { name: "layout", mode: "out-in" },
  },
  vite: {
    css: {
      preprocessorOptions: {
        scss: {
          additionalData: '@use "@/assets/css/_colors.scss" as *;',
        },
      },
    },
  },
});
